Backbone.View.prototype.close = function () {
    console.log('Closing view ' + this);
    if (this.beforeClose) {
        this.beforeClose();
    }
    this.remove();
    this.unbind();
};


//preload some
tpl.preLoadTemplates(['header','wine-list-item'], function () {
    winesrouter = new WinesRouter();
    Backbone.history.start();
});

//get the rest
tpl.get('wine-details');